remove deprecated lexical_ordering() usage
authorChristoph Burgdorf <christoph.burgdorf@bvsn.org>
Mon, 21 Jul 2014 22:30:54 +0000 (00:30 +0200)
committerChristoph Burgdorf <christoph.burgdorf@bvsn.org>
Tue, 22 Jul 2014 07:19:01 +0000 (09:19 +0200)
src/cargo/core/package.rs

index e70f863844310621f7fe41b3eafcaf555f35a9a2..96175b9a134ace5d131a068c09bdd4bd4efe556e 100644 (file)
@@ -1,4 +1,3 @@
-use std::cmp;
 use std::fmt::{Show,Formatter};
 use std::fmt;
 use std::slice;
@@ -122,8 +121,9 @@ impl Package {
         let mut sources = self.get_source_ids();
         // Sort the sources just to make sure we have a consistent fingerprint.
         sources.sort_by(|a, b| {
-            cmp::lexical_ordering(a.kind.cmp(&b.kind),
-                                  a.location.to_string().cmp(&b.location.to_string()))
+            let a = (&a.kind, a.location.to_string());
+            let b = (&b.kind, b.location.to_string());
+            a.cmp(&b)
         });
         let sources = sources.iter().map(|source_id| {
             source_id.load(config)